from django.contrib.auth.views import LoginView
from django.urls import path,include
from .user import *
from org.views import OrgInfoView,DepartmentView,RoleInfoView,UserInfoView

urlpatterns = [

    ## 组织信息管理
    path('org/',OrgInfoView.as_view()),

    path('department/',DepartmentView.as_view()),

    path('role/',RoleInfoView.as_view()),

    path('user/',UserInfoView.as_view()),

    ## 登录
    path('login/',login),

    ## 登出
    path('logout/',logout),
]